package me.lx

import android.os.Bundle
import com.blankj.utilcode.util.AppUtils
import home.pkg.HomeAct
import lib.base.BaseAct
import lib.base.DefaultManager
import lib.base.mix.DefaultVm
import lib.common.R
import lib.common.databinding.CommonActBinding
import timber.log.Timber

class MainAct : BaseAct<CommonActBinding, DefaultVm, DefaultManager>() {

    override val layoutId: Int = R.layout.common_act
    override fun initView() {
        getB().apply {
            btn1.setOnClickListener { btn1() }
            btn2.setOnClickListener { btn2() }
        }
    }

    override fun doBusiness(savedInstanceState: Bundle?) {
        getB().tvTitle.text = "MainAct"

    }

    fun btn1() {
        Timber.d("111111111111")
    }

    fun btn2() {
        Timber.d("aaa=${AppUtils.getAppPackageName()}")
    }
}